<div class="row">
  <section class="col-md-8">
    <div class="box box-info">
      <div class="box-header">
        <h3 class="box-title">
          用户管理
          <a ng-click="openDialog()" class="btn btn-xs btn-primary">新增用户</a>
        </h3>
        <div class="box-tools">
          <div class="input-group input-group-sm" style="width: 150px;">
            <input type="text" name="table_search" ng-model="filters.email" class="form-control pull-right" placeholder="邮箱查询">
            <div class="input-group-btn">
              <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
            </div>
          </div>
        </div>
        <div class="box-tools pull-right">
          <a href="#/" class="btn btn-sm btn-primary pull-left">返回</a>
        </div>
      </div>
      <!-- /.box-header -->
      <div class="box-body">
        <div class="table-responsive">
          <table ng-table="userTable" show-filter="false" class="table no-margin">
            <tr ng-repeat="user in $data ">
              <td ng-bind="user.id" data-title="'ID'" class="hidden-xs hidden-sm"></td>
              <td ng-bind="user.name" data-title="'用户名'"></td>
              <td ng-bind="user.email" data-title="'邮箱地址'"></td>
              <td  data-title="'创建日期'" ng-bind="user.created_at"></td>
              <td  data-title="'角色类型'">
                <span class="label label-info" ng-bind="user.type_label"></span>
              </td>
              <td data-title="'管理'">
                <a class="btn btn-default btn-xs" ng-click="openDialog(user)"><i class="fa fa-pencil-square-o"></i></a>
              </td>
            </tr>
            <tr ng-show="!$data.length">
              <td class="text-center" colspan="10">没有相关用户</td>
            </tr>
          </table>
        </div>
        <!-- /.table-responsive -->
      </div>
      <!-- /.box-body -->
      <div class="box-footer clearfix">
      </div>
      <!-- /.box-footer -->

      <div class="overlay" ng-show="userTable.settings().$loading">
        <i class="fa fa-refresh fa-spin"></i>
      </div>
    </div>
  </section>
</div>